﻿namespace TheWorldLibrary.Enumeration
{
    public enum ClientPackets
    {
        CNewAccount = 1,
        CDelAccount,
        CLogin,
        CAddAccount,
        CAddChar,
        CUseChar,
        CSayMsg,
        CEmoteMsg,
        CBroadcastMsg,
        CPlayerMsg,
        CPlayerMove,
        CPlayerDir,
        CUseItem,
        CAttack,
        CUseStatPoint,
        CPlayerInfoRequest,
        CWarpMeTo,
        CWarpToMe,
        CWarpTo,
        CSetSprite,
        CRequestNewMap,
        CMapData,
        CNeedMap,
        CMapGetItem,
        CMapDropItem,
        CMapRespawn,
        CMapReport,
        CKickPlayer,
        CBanList,
        CBanDestroy,
        CBanPlayer,
        CRequestEditMap,
        CRequestEditItem,
        CSaveItem,
        CRequestEditNpc,
        CSaveNpc,
        CRequestEditShop,
        CSaveShop,
        CRequestEditSpell,
        CSaveSpell,
        CSetAccess,
        CWhosOnline,
        CSetMotd,
        CSearch,
        CSpells,
        CCast,
        CQuit,
        CSwapInvSlots,
        CRequestEditResource,
        CSaveResource,
        CCheckPing,
        CUnequip,
        CRequestPlayerData,
        CRequestItems,
        CRequestNPCS,
        CRequestResources,
        CSpawnItem,
        CRequestEditAnimation,
        CSaveAnimation,
        CRequestAnimations,
        CRequestSpells,
        CRequestShops,
        CRequestLevelUp,
        CForgetSpell,
        CCloseShop,
        CBuyItem,
        CSellItem,
        CChangeBankSlots,
        CDepositItem,
        CWithdrawItem,
        CCloseBank,
        CAdminWarp,
        CTradeRequest,
        CAcceptTrade,
        CDeclineTrade,
        CTradeItem,
        CUntradeItem,
        CHotbarChange,
        CHotbarUse,
        CSwapSpellSlots,
        CAcceptTradeRequest,
        CDeclineTradeRequest,
        CPartyRequest,
        CAcceptParty,
        CDeclineParty,
        CPartyLeave,
        CPartyChatMsg,
        CRequestEditConv,
        CSaveConv,
        CRequestConvs,
        CSendConvEvent,
        CCloseConv,
        CTargetUpdate,
        CRequestEditQuest,
        CSaveQuest,
        CRequestQuests,
        CRequestQuestInfo,
        CQuestDrop,
        // Make sure CMSG_COUNT is below everything else
        CMSG_COUNT
    }

    public enum ServerPackets
    {
        SAlertMsg = 1,
        SRegisterOk,
        SAccountError,
        SLoginOk,
        SSendChar,
        SNewCharClasses,
        SClassesData,
        SInGame,
        SPlayerInv,
        SPlayerInvUpdate,
        SPlayerWornEq,
        SPlayerHp,
        SPlayerMp,
        SPlayerStats,
        SPlayerData,
        SPlayerNewXY,
        SPlayerMove,
        SNpcMove,
        SPlayerDir,
        SNpcDir,
        SPlayerXY,
        SPlayerXYMap,
        SAttack,
        SNpcAttack,
        SCheckForMap,
        SMapData,
        SMapItemData,
        SMapNpcData,
        SMapDone,
        SGlobalMsg,
        SAdminMsg,
        SPlayerMsg,
        SMapMsg,
        SSpawnItem,
        SItemEditor,
        SUpdateItem,
        SREditor,
        SSpawnNpc,
        SNpcDead,
        SNpcEditor,
        SUpdateNpc,
        SMapKey,
        SEditMap,
        SShopEditor,
        SUpdateShop,
        SSpellEditor,
        SUpdateSpell,
        SSpells,
        SLeft,
        SResourceCache,
        SResourceEditor,
        SUpdateResource,
        SSendPing,
        SDoorAnimation,
        SActionMsg,
        SPlayerEXP,
        SBlood,
        SAnimationEditor,
        SUpdateAnimation,
        SAnimation,
        SMapNpcVitals,
        SCooldown,
        SClearSpellBuffer,
        SSayMsg,
        SOpenShop,
        SResetShopAction,
        SStunned,
        SMapWornEq,
        SBank,
        STrade,
        SCloseTrade,
        STradeUpdate,
        STradeStatus,
        STarget,
        SHotbar,
        SHighIndex,
        SSound,
        STradeRequest,
        SPartyInvite,
        SPartyUpdate,
        SPartyVitals,
        SConvEditor,
        SUpdateConv,
        SSendStartConv,
        SSendCloseConv,
        SQuestEditor,
        SUpdateQuest,
        SPopulateList,
        // Make sure SMSG_COUNT is below everything else
        SMSG_COUNT
    }
}
